import re
arr=eval(input())
ls=list()
flag=0
for i in arr:
    if i not in ls:
        if flag:
            print("",i,end='')
            ls.append(i)
        else:
            flag=1
            print(i,end='')
            ls.append(i)